<?php $content .= 'function checkForm(){var a=0;var b=unescape("'.js_lang(JS_ERROR).'");var c=document.getElementById("product_reviews_write").review.value;if(c.length<'.REVIEW_TEXT_MIN_LENGTH.'){b=b+unescape("'.js_lang(sprintf(JS_REVIEW_TEXT, REVIEW_TEXT_MIN_LENGTH)).'");a=1}if(!((document.getElementById("product_reviews_write").rating[0].checked)||(document.getElementById("product_reviews_write").rating[1].checked)||(document.getElementById("product_reviews_write").rating[2].checked)||(document.getElementById("product_reviews_write").rating[3].checked)||(document.getElementById("product_reviews_write").rating[4].checked))){b=b+unescape("'.js_lang(JS_REVIEW_RATING).'");a=1}if(a==1){alert(b);return false}else{return true}}';